<?php

use yii\helpers\Url;
?>
<?php if ($this->context->headerShow): ?>
    <?php if (Yii::$app->requestedRoute === "site/index"): ?>
        <header class="mui-bar mui-bar-nav my-header">
            <a class="mui-media mui-pull-left ">
                <img class="mui-media-object" src="../images/LOGO.png">
            </a>
            <h1 class="mui-title"><?php echo $this->context->headerTitle; ?></h1>
            <a class="mui-icon mui-icon mui-icon-email mui-pull-right">
                <span class="mui-badge">12</span>
            </a>
        </header>
    <?php else: ?>
        <header class="mui-bar mui-bar-nav my-header ">
            <?php if ($this->context->headerBack): ?>
                <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
            <?php endif; ?>
            <h1 class="mui-title"><?php echo $this->context->headerTitle; ?></h1>
            <?php if ($this->context->headerReflash): ?>
                <a class="mui-icon mui-icon-refreshempty mui-pull-right"></a>
            <?php elseif ($this->context->headerRight): ?>
                <a style="font-size: 14px;margin-top: 10px;" class="mui-icon mui-pull-right" href="<?php echo $this->context->headerRight["url"]; ?>"><?php echo $this->context->headerRight["title"]; ?></a>
            <?php endif; ?>
        </header>
    <?php endif; ?>
<?php endif; ?>

